package com.tz;

import com.tz.bean.ClassA;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * Created by C_Marvin on 2016/10/9.
 */
public class Apptest {
    @Test
    public void test1() {
        ApplicationContext ac = new AnnotationConfigApplicationContext(AppConfig.class);
        ClassA a = ac.getBean(ClassA.class);
        a.a();
    }
}
